Ext.define('DragonApp.view.white.IPGrid', {
    extend: 'DragonApp.view.foundation.Grid',

    alias: ['widget.whitegrid_ip'],

    controller: 'whitelist',

    requires: [
        'DragonApp.view.white.IPBar',
        'DragonApp.view.white.IPForm',
        'DragonApp.store.JsonPWhiteIp'
    ],

    selModel: {
        selType: 'checkboxmodel',
        checkOnly: true,
        mode: "MULTI"
    },

    title: 'IP段',

    dockedItems: [{
        xtype: 'whitebar_ip',
        dock: 'top'
    }],

    columns: [
        { text: '序号', xtype: 'rownumberer', width: 100, align: 'center' },
        { text: '序号', dataIndex: 'id', align: 'center', hidden: true, hideable: false },
        { text: '起始IP', dataIndex: 'ip_from', align: 'center', width: 140 },
        { text: '终止IP', dataIndex: 'ip_end', align: 'center', width: 140 },
        { text: '适用服务器', dataIndex: 'server', align: 'left', flex: 1, renderer: 'serverRender' }
    ],

    store: {
        type: 'jsonPWhiteIpStore',
        storeId: 'jsonPWhiteIpStore'
    }
});